import { DataTypes } from "sequelize";
import sequelize from "../database/index.js";

const Home = sequelize.define(
  "concern",
  {
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true,
      comment: "主键，自增ID",
    },
    user: {
      type: DataTypes.STRING(255),
      allowNull: true,
      comment: "用户",
    },
    user_con: {
      type: DataTypes.STRING(255),
      allowNull: true,
      comment: "用户2",
    },
  },
  {
    tableName: "concern",
    timestamps: false,
    comment: "关注表",
  }
);

export default Home;
